import request from '@/utils/request'
// 注册
export function updatePhone(data) {
    return request({
        url: 'api/user/updatePhone',
        method: 'post',
        data
    })
}
// 注册
export function register(data) {
    return request({
        url: 'api/login/register',
        method: 'post',
        data
    })
}
export function download(params) {
    return request({
        url: 'api/login/download',
        method: 'get',
        params
    })
}

export function tradeDetail(params) {
    return request({
        url: 'api/trade/tradeDetail',
        method: 'get',
        params
    })
}
export function getMember(data) {
    return request({
        url: 'api/login/getMember',
        method: 'post',
        data
    })
}
export function userlogin(data) {
    return request({
        url: 'api/login/login',
        method: 'post',
        data
    })
}
export function loginconfig() {
    return request({
        url: 'api/login/config',
        method: 'get'
    })
}

export function forgetPassword(data) {
    return request({
        url: 'api/login/forgetPassword',
        method: 'post',
        data
    })
}
export function recommendRegister(data) {
    return request({
        url: 'api/login/recommendRegister',
        method: 'post',
        data
    })
}
export function sendSms(data) {
    return request({
        url: 'api/login/sendCode',
        method: 'post',
        data
    })
}
export function userbind(data) {
    return request({
        url: 'api/user/bind',
        method: 'post',
        data
    })
}
